
import request from '@/utils/request'

export default {
  ///admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
//attrInfoList
//获取属性列表
  getAttrList(category1Id,category2Id,category3Id) {
    return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
  },
  //DELETE /admin/product/deleteAttr/{attrId}
//deleteAttr
  delete(attrId){
    return request.delete(`/admin/product/deleteAttr/${attrId}`)
  },
//POST /admin/product/saveAttrInfo
//saveAttrInfo
  addOrUpdate(attrList){
    return request.post('/admin/product/saveAttrInfo',attrList)
  }
}

